using System;
using System.Collections.Generic;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Dune.Business.Domain.Application;
using Dune.Business.Domain.Users;
using Edge.Business.Domain.Application;
using Edge.Common;
using Edge.Common.Mail;
using Edge.Common.Services;
using Edge.Common.Utils;
using Edge.Common.Web.Controls.Grid;
using Edge.Common.Web.DataSourceAdapters;
using Dune.Web.AppCode;
using Dune.Web.AppCode.Security;

namespace Dune.Web
{
    public partial class Persons : BaseDunePage
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            FetchOptions fo = FetchOptions.All;
            ICollection<Person> ds = Locator.GetService<IUserPersonManager>().Find(fo, GetTemplateFilter());
            rprTabs.DataSource = ds;
            rprTabs.DataBind();
            rprTabsContent.DataSource = ds;
            rprTabsContent.DataBind();
        }

        protected PersonFilter GetTemplateFilter()
        {
            PersonFilter template = new PersonFilter();
            template.User = Locator.GetService<IContextObjects>().Get<UserHolder>().Object;
            template.Keyword = "";
            return template;
        }


    }
}
